projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d30ad2
)
print dialog: Apply initial capabilities
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 2 Jul 2016 22:08:38 +0000
(18:08 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 2 Jul 2016 22:08:38 +0000
(18:08 -0400)
I was struggling to understand why calling
gtk_print_unix_dialog_set_manual_capabilities (...,0)
was not having the expected effect of hiding the preview
button. The initial capabilities were not applied at all.
gtk/gtkprintunixdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprintunixdialog.c
b/gtk/gtkprintunixdialog.c
index fbdf51cf4cd8d269ec0be7b4ff93da5d8c6f9472..82d434a77306dbf0d38edfdb17204a8d2e8afe6d 100644
(file)
--- a/
gtk/gtkprintunixdialog.c
+++ b/
gtk/gtkprintunixdialog.c
@@
-825,6
+825,8
@@
gtk_print_unix_dialog_constructed (GObject *object)
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
g_object_unref (button);
}
+
+ update_dialog_from_capabilities (GTK_PRINT_UNIX_DIALOG (object));
}
static void